*###########################################################*
* Effects of Settlement into Ethnic Enclaves on Immigrant   *
* Voter Turnout                                             *
* Andersson, Lajevardi, Lindgren, and Oskarsson             *
* Journal: Journal of Politics                              *
* Stata Replication Code                                    *
*###########################################################*

******************
* MASTER *********
*****************

*****************
* PREPARATIONS  *
*****************

///PREPARE FAMILY VARIABLES
*These create yearly individual files where we can see if one has a sibling
*in the country and if one has a household member in the country. 
*These are prepared to be able to merge on to the immigrant sample and drop 
*those who reasonably where family migrants

do "C:\Userdata\Shared\Dofiles\DoData\Ethnic Enclaves, political participation\Familydata"


///PREPARE OTHER DATA
*Prepares the enclaves variables (share of coethnics on different geographical levels)
*Also prepares some other data: moving between municipalities and voting for radical right 1991

do "C:\Userdata\Shared\Dofiles\DoData\Ethnic Enclaves, political participation\enclaves"

*****************
* CREATE SAMPLE *
*****************

*this file creates the immigrant sample, adds on the relevant ind. variables 
*and merges family and enclave data. Creates a panel of individuals from 1987-1991
do "C:\Userdata\Shared\Dofiles\DoData\Ethnic Enclaves, political participation\sample_ind"


***********
*ANALYSIS *
***********

///DESCRIPTIVES

do "C:\Userdata\Shared\Dofiles\DoAnalysis\Ethnic Enclaves, political participation\descriptives"

///REGRESSIONS/other analysis
do "C:\Userdata\Shared\Dofiles\DoAnalysis\Ethnic Enclaves, political participation\reg"
